﻿@page "/Prints/PrintByComponent"
@using Maanfee.Web.Printing;

<h3>Print By Component</h3>

<div class="row">
	<div class="col-6">
		<div class="alert alert-info" role="alert">
			Standard low-code solution Blazor Component to printing HTML to PDF using the browser's print screen.
		</div>
		<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="(() => PrintRef.PrintAsync())">Print</MudButton>
		<PrintComponent @ref="PrintRef" PageName="Forecast Data">
			<MudAlert Severity="Severity.Normal">The reactor type is RBMK-1000</MudAlert>
			<MudAlert Severity="Severity.Info">The reactor was fired up successfully</MudAlert>
			<MudAlert Severity="Severity.Success">The reactor is running at optimum temperature</MudAlert>
			<MudAlert Severity="Severity.Warning">The reactor temperature exceeds the optimal range</MudAlert>
			<MudAlert Severity="Severity.Error">Meltdown is imminent</MudAlert>
		</PrintComponent>
	</div>
</div>

@code {

	public PrintComponent PrintRef { get; set; }

}